package com.jcfk.eam.dao.base;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.common.web.domain.DataPage;
import com.jcfk.eam.domain.dto.base.EamSopStandardDTO;
import com.jcfk.eam.domain.dto.main.EamPointCheckResultDTO;
import com.jcfk.eam.domain.po.base.EamSopStandard;
import com.jcfk.eam.domain.query.base.EamSopStandardQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
 * 标准作业规程
 *
 * @author awei
 * @email 522891237@gqq.com
 * @date 2024-08-08
 */
@Repository
public interface EamSopStandardDao extends BaseDao<EamSopStandard> {
    /**
     * 标准作业规程分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<EamSopStandardDTO> queryByPage(@Param("page") DataPage<EamSopStandardDTO> page, @Param("query") EamSopStandardQuery query);

    /**
     * 获取标定标准列表
     * @param assetKind
     * @param taskKind
     */
    List<EamSopStandardDTO> getStandardList(@Param("assetKind") Integer assetKind,@Param("taskKind") Integer taskKind,@Param("equipTypeId") String equipTypeId);

    List<EamSopStandardDTO> getList(@Param("query") EamSopStandardQuery query);

    EamPointCheckResultDTO getSopStandard(@Param("query") EamSopStandardQuery query);

    /**
     * 获取作业周期列表
     * @param sopTypeCode
     * @return
     */
    List<EamSopStandardDTO> getCheckPeriods(@Param("assetKind") Integer assetKind,@Param("sopTypeCode") String sopTypeCode);
}
